<div class="grid_8">
<h3>Users</h3>
<ol class="list">
<?php foreach ($users->result() as $row) { ?>
<li><p><?=anchor('people/edit/' . $row->id, 'Edit')?> <?=anchor('people/delete/' . $row->id, 'Delete')?></p><h4><?=$row->fname?></h4></li>
<?php } ?>
</ol>
</div>
<div class="grid_8">
<h3>New User</h3>
<?=form_open('people')?>

<ul>
<li><label>Username <?php echo $this->validation->username_error; ?></label><input type="text" name="username" /></li>
<li><label>Name <?php echo $this->validation->fname_error; ?></label><input type="text" name="fname" /></li>
<li><label>Email <?php echo $this->validation->email_error; ?></label><input type="text" name="email" /></li>
<li><label>Admin</label>
	<select name="admin">
	<option value="0">No</option>
	<option value="1" >Yes</option>
	</select></li>
<li><label>Password <?php echo $this->validation->pass_error; ?></label><input type="password" name="pass" /></li>
<li><label>Password Again <?php echo $this->validation->pass2_error; ?></label><input type="password" name="pass2" /></li>
<li><input class="submit" type="submit" value="Add User" /></li>
</ul>
</form>
</div>